{% extends "base.html" %}

<!-- 屏蔽菜单 -->
{% block navbar %}
{% endblock %}

{% block page_content %}
<div class="container">
  <form method="POST">
    {{ form.csrf_token }}
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header bg-warning">
                <h2 class="modal-title text-center text-warning">管理员登录</h2>
            </div>
            <div class="modal-body bg-info">
              <div class="form-group">
                <span class="glyphicon glyphicon-user"></span>
                {{ form.email.label }}
                {{ form.email(class='form-control') }}
              </div>
              <div class="form-group">
                <span class="glyphicon glyphicon-eye-close"></span>
                {{ form.password.label }}
                {{ form.password(class='form-control') }}
              </div>
              <div class="form-group">
                {{ form.flaskadmin() }}
                {{ form.flaskadmin.label }}
              </div>
            </div>
            <div class="modal-footer bg-warning">
                <div class="form-group">
                  <button name="submit" 
                    type="submit" 
                    class="btn btn-warning">
                    <span class="glyphicon glyphicon-log-in"></span>管理员登录
                  </button>
                </div>
            </div>
        </div>
    </div>
  </form>
</div>
{% endblock %}